#ifndef _XWM_H
#define _XWM_H

#include "window.h"
#include "layout.h"
#include "zone.h"

#endif

#if 0
	iprintf("\nCreating default windows...");
	sZone text_field; bzero(&text_field, sizeof(sZone));
	text_field.flags=/*fZ_FIXEDHEIGHT |*/ fZ_SCROLLABLE;
	text_field.width=60;
	text_field.height=40;

	sZone ok_button;
	z_makeButton(&ok_button, xstrdup("OK"), NULL);

	sWindow ok_window;
	bzero(&ok_window, sizeof(sWindow));	// an "OK" window !!
	{
		sLayout *lay, *lay1;

		// vertical layout
		lay=w_addLayout(&ok_window, 0, &text_field);	// text field
		{	// no child

		}
		lay=l_append(lay, 0, NULL);
		{
			// horizontal layout inside the second element of the first vertical layout
			lay1=l_addChild(lay, fL_HORIZONTAL, NULL);	// spacer
			lay1=l_append(lay1, 0, &ok_button);	// ok button
		}
	}

	w_init(&ok_window);
iprintf("\nw.w=%d", ok_window.geo.width);
iprintf("\nw.h=%d", ok_window.geo.height);
	iprintf("ok");

ok_window.x=12;
ok_window.y=25;
ok_window.geo.lwidth=100;
ok_window.geo.lheight=100;
w_render(&ok_window);
#endif

